
import Mock from 'mockjs'
import homeApi from './api/mockData/home'
import userApi from './api/mockData/user'
import menuApi from './api/mockData/permission'

Mock.mock('/api/home/getTable','get',homeApi.getTable);
Mock.mock("/api/home/getCountData",'get',homeApi.getCountData);
Mock.mock("/api/home/getChartData",'get',homeApi.getChartData);

//正则匹配参数
Mock.mock(RegExp('/api/user/getUserList.*'),'get',userApi.getUserList);
Mock.mock(RegExp('/api/user/deleteUser.*'),'get',userApi.deleteUser);
Mock.mock(RegExp('/api/user/addUser.*'),'post',userApi.addUser);
Mock.mock(RegExp('/api/user/editUser.*'),'post',userApi.editUser);

Mock.mock(RegExp('/api/permission/getMenu.*'),'post',menuApi.getMenu);
